package distributedbank.server.messages;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

/**
 * OracleNotification specifies a server id. It broadcasts to all servers and
 * clients. Once a server receives the OracleNotification, it check if the
 * specified server is itself. If yes, change alive state. If no, do some
 * insert/delete operation on the lists it maintains.
 */
public class OracleNotification implements Serializable {

    private static final long serialVersionUID = 8104830685440078700L;
    public final List<Set<Integer>> servers;

    public OracleNotification(List<Set<Integer>> servers) {
        this.servers = servers;
    }

}
